package UI;

import javax.swing.JMenu;

import controller.IMenuController;
import UI.menuBar.*;

public class MenuUI extends javax.swing.JMenuBar{

    /**
	 * @author Francisco José Martínez López
	 * @date 2012. Apr, 12
	 * This class is a wrapper for JMenuBar
	 */
	
	/** SerialVersionUID was generated for date time of creation file */
	private static final long serialVersionUID = 201204121711L;
        
    private JMenu menuFile;
    private JMenu menuHelp;
    private JMenu menuEdit;
    private JMenu menuTools;
    private JMenu menuView;
    
    private IMenuController mController;
    
    /**
     * Creates new form InterfazPrincipal
     */
    public MenuUI() {
    	
        menuFile = new MenuFile();        
        menuEdit = new MenuEdit();
        menuTools = new MenuTools();        
        menuView = new MenuView();
        menuHelp = new MenuHelp();
 
        this.add(menuFile);
        this.add(menuEdit);
        this.add(menuTools);
        this.add(menuView);        
        this.add(menuHelp);
    }

	public MenuFile getMenuFile() {
		return (MenuFile) menuFile;
	}

	public MenuHelp getMenuHelp() {
		return (MenuHelp) menuHelp;
	}

	public MenuEdit getMenuEdit() {
		return (MenuEdit) menuEdit;
	}

	public MenuTools getMenuTools() {
		return (MenuTools) menuTools;
	}

	public MenuView getMenuView() {
		return (MenuView) menuView;
	}

	public void setController(IMenuController mController) {
		this.mController = mController;
	}
	public IMenuController getController() {
		return this.mController;
	}
	
}
